From a91146d8fede3e8531e8eb0fd309b32c97ece70d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 31 Jul 2012 13:18:03 +0200 Subject: [PATCH] Fix logic error from Ia74ac399 (2ee4653). The "views" part of the table should only be displayed if view counters are *not* disabled (and not the opposite). Change-Id: I4859f396cc9e2eb7b9f4eff6502efc459a3410fd --- includes/actions/InfoAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index ea4425471c..f4813a4c0e 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -87,7 +87,7 @@ class InfoAction extends FormlessAction { ); } - if ( $wgDisableCounters ) { + if ( !$wgDisableCounters ) { $content .= Html::rawElement( 'tr', array(), Html::element( 'th', array( 'colspan' => 3 ), $this->msg( 'pageinfo-header-views' )->text() ) ) . -- 2.20.1